package com.cskaoyan.properties;

import com.cskaoyan.config.User;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author stone
 * @date 2021/11/26 15:01
 */
@Data
@ConfigurationProperties(prefix = "cskaoyan")
public class CskaoyanProperties {
    String name;
    Integer age;
    boolean open;

    //两种不同的写法
    String[] array1;
    String[] array2;
    List list1;
    List list2;

    //两种不同的写法
    Map map1;
    Map map2;

    User user1;
    User user2;
}
